package uk.ac.ebi.bioinvindex.utils;

/**
 * ToDo: this is a very primitive ACC generator. Implement proper one
 * User: Nataliya Sklyar (nsklyar@ebi.ac.uk)
 * Date: Jan 16, 2008
 */
public class AccessionGenerator {
	private static AccessionGenerator ourInstance = new AccessionGenerator();

	private int  currentNumber = 1;

	public static AccessionGenerator getInstance() {
		return ourInstance;
	}

	private AccessionGenerator() {
	}

	public String generateAcc() {
		return "BII-" + currentNumber++;
	}

	public String generateTempAcc() {
		return "TEMP-" + currentNumber++;
	}
}
